﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="DocumentManagement.Views.YGD.SearchResult" %>

<%@ Import Namespace="DocumentManagement.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        预估单搜索结果</h2>
    <table>
        <tr>
            <td>
                预估编号
            </td>
            <td>
                委托来源
            </td>
            <td>
                委托方
            </td>
            <td>
                项目座落
            </td>
            <td>
                预估单状态
            </td>
            <td>
                预估总价
            </td>
            <td>
                预估单价
            </td>
            <td>
                修改
            </td>
        </tr>
        <%foreach (var ygd in this.Model.YGDs)
          { %>
        <tr>
            <td>
                <a target="_blank" href="<%=this.Url.Action("ShowYuGuDanDetail", "yugudan", new {id = ygd.id}) %>">
                    <%if(string.IsNullOrEmpty(ygd.ygbh)) { %>
                    (无)
                    <%}else { %>
                    <%=ygd.ygbh %>
                    <%} %>
                </a>
            </td>
            <td>
                <%=ygd.wtly%>
            </td>
            <td>
                <%=ygd.wtf%>
            </td>
            <td>
                <%=ygd.xmzl %>
            </td>
            <td>
                <%=Utility.GetEnumText((YuGuDanState) ygd.state) %>
            </td>
            <td>
                <%=ygd.ygzj %>
            </td>
            <td>
                <%=ygd.ygdj %>
            </td>
            <td>
                <a href="<%=this.Url.Action("ShowYuGuDanEdit", "yugudan", new {id = ygd.id}) %>">修改</a>
            </td>
        </tr>
        <%}%>
    </table>
</asp:Content>
